﻿// Copyright: 2012 
// Author: Minh Vu - YoungJ
// File name: CheckedConverter.cs
// Solution: WpfEncryption
// Project: WpfEncryption
// Time: 12:07 PM 27/05/2012

using System;
using System.Globalization;
using System.Windows.Data;

namespace WpfEncryption.Converter
{
    public class CheckedConverter : IValueConverter
    {
        #region Implementation of IValueConverter

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var ischeck = System.Convert.ToBoolean(value);
            return ischeck;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
           throw new NotImplementedException("convert back");
        }

        #endregion
    }
}